function a(s) {
    wx.request({
        url: e.globalData.host + "/lotto/v1/user_list",
        data: {
            lid: s.data.lid,
            access_token: t.getToken(),
            page: s.data.page,
            count: s.data.count,
            type: 0
        },
        method: "GET",
        dataType: "json",
        success: function(e) {
            if (t.hideLoading(), -500 != e.data.sta) if (0 == e.data.sta) {
                for (var o = e.data.data, d = o.users, i = d.length, n = 0; n < i; n++) d[n].data_str = t.formatDate(1e3 * d[n].join_date, "yyyy-MM-dd HH:mm");
                s.setData({
                    users: 1 == s.data.page ? d : s.data.users.concat(d),
                    total: o.total,
                    moreData: d.length == s.data.count,
                    page: s.data.page + 1
                });
            } else t.showFailedToast("数据加载失败", e.data.msg); else t.login(function() {
                a(s), s.setData({
                    hasUserInfo: !0
                });
            }, function() {
                s.setData({
                    hasUserInfo: !1
                });
            });
        },
        fail: function(a) {
            t.hideLoading();
        }
    });
}

var t = require("../../utils/util.js"), s = require("../../tmp/tmp.js"), e = getApp();

Page({
    data: {
        page: 1,
        count: 20,
        users: null,
        moreData: !1,
        swiper: e.globalData.adSwiper,
        adId: "502246c05c3a82a47cf39c73f98679bb"
    },
    onLoad: function(t) {
        s.ads(this, this.data.adId, "users"), console.log(t);
        var e = t.lid || "";
        this.setData({
            lid: e
        }), a(this), s.ads(this, this.data.adId, "users");
    },
    onShow: function(a) {},
    onReachBottom: function() {
        this.data.moreData && a(this);
    },
    postFormId: function(a) {
        t.postFormId(a.detail.formId);
    }
});